package demo2;

import demo1.TestDemo;


//class A{
//
//}
//class B extends A{
//
//}
//final class C extends B{
//
//}
//class D extends C{
//    String
//}
//组合
class Student{

}
class Teacher{

}

class School{
    public Student[]  students;
    public Teacher[]  teachers;
}

//不同包的子类
public class Test extends TestDemo {
    public void test(){
        System.out.println(super.a);
    }

    public static void main(String[] args) {
        Test test = new Test();
        test.test();
    }
}
